﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hidden_Picture
{
    public partial class Wait : Form
    {
        public Wait()
        {
            InitializeComponent();
            ControlBox = false;
        }

        private void Wait_Load(object sender, EventArgs e)
        {

        }

        public void Start()
        {
            progressBar1.Value = 0;
            timer1.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            int value = PictureIO.progress * 100 / PictureIO.total;
            progressBar1.Value = value;
            label1.Text = "已完成:" + value + "%";
        }

        public void close()
        {
            Hide();
            timer1.Stop();
        }
    }
}
